import java.util.Scanner;

/**
 * @author CV大魔王
 * @Description
 * @date 2021/3/14 19:25
 */
public class demo01 {

    private static Scanner scString;

    public static void main(String[] args) {
//        test2();
//        test3();
    }

    /**
     * 常用方法
     */
    private static void test3() {
        String m = "aaabbb";
        System.out.println(m.substring(0,3));

        System.out.println(m.startsWith("a"));
        System.out.println(m.startsWith("b"));
    }


    /**
     * String equals
     */
    private static void test2() {
        String a =  "张安";
        String b  = "张安";
        System.out.println(a==b);

        scString = new Scanner(System.in);
        String c = "aa";
        System.out.println("请输入姓名");
        String d = scString.next();
        System.out.println(c.equals(d));
    }


    private static void test1(){
        int a = 10099;
        int b = 10099;
        System.out.println(a==b);

        Integer c = 10099;
        Integer d = 10099;
        System.out.println(c.equals(d));

        Integer c1 = 30;
        Integer d1 = 30;
        System.out.println(c1==d1);
        // -128~127
    }
}
